package com.springboot.astra.mapper;

import com.springboot.astra.bean.Permission;
import com.springboot.astra.bean.RolesPermission;

import java.util.List;

public interface RolesPermissionMapper {
    RolesPermission getOneById(Integer id);
    List<RolesPermission> getAll();
    void insertRolesPermission(RolesPermission rolesPermission);
    void updateOneById(RolesPermission rolesPermission);
    void deleteOneById(Integer id);
    RolesPermission isExact(RolesPermission rolesPermission);
    void deleteAll(Integer roleId);
    List<Permission> getAllByRoleId(Integer roleId);
}
